package cn.iocoder.yudao.module.ent.controller.admin.tag.vo.tag;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "企业大数据 - 企业标签新增/修改 Request VO")
@Data
public class TagSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "12887")
    private Long id;

    @Schema(description = "分组编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12887")
    @NotNull
    private Long setId;

    @Schema(description = "标签内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标签内容不能为空")
    private String content;

    @Schema(description = "背景颜色", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "背景颜色不能为空")
    private String bgColor;


    @Schema(description = "文字颜色", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "文字颜色不能为空")
    private String textColor;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}